package com.cinc.mdm.modules.processRoute.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.mdm.modules.processRoute.entity.MdmProcessRouteDetail;
import com.cinc.mdm.modules.processRoute.model.MdmProcessRouteDetailModel;
import com.cinc.mdm.modules.processRoute.vo.MdmProcessRouteDetailPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: 工艺路线明细
 * @Author: jeecg-boot
 * @Date: 2022-07-21
 * @Version: V1.0
 */
public interface MdmProcessRouteDetailMapper extends BaseMapper<MdmProcessRouteDetail> {

    public boolean deleteByMainId(@Param("mainId") String mainId);
    public boolean deleteByClassId(@Param("classId") String classId);

    public List<MdmProcessRouteDetail> selectByMainId(@Param("mainId") String mainId);
    public List<MdmProcessRouteDetail> selectByClassId(@Param("classId") String classId);

    List<MdmProcessRouteDetailModel> selectDetailList(Page<MdmProcessRouteDetailModel> page, @Param("detail") MdmProcessRouteDetailPage detailPage);

    Map<String, String> selectProcessControlCodeAndName(@Param("controlId") String controlId);
}
